package com.jml.waitnotify;

import com.jml.手写数据库连接池.ConnectionPoolManager;
import java.sql.Connection;

public class WaitThread implements Runnable {

	private Test001 t;

	public WaitThread(Test001 t) {
		this.t = t;
	}

	public void run() {
		try {
			t.twait();
			t.tnotifyAll();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
